package Month07.day16.test1;

public abstract class Animal implements Swimming {
    private int age;
    public void drink(){
        System.out.println("喝水");
    }
    public abstract void eat();
    public Animal() {
    }

    public Animal(int age) {
        this.age = age;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
